package org.learn.intermediate.com.exercise;

public class Exercise02 {
    public static void main(String[] args) {
        F f = new F();
    }
}
class D{
    public D(){
        System.out.println("我是D类");
    }
}
class E extends D{
    public E(){
        System.out.println("我是E类的无参构造器");
    }
    public E(String name){
        System.out.println(name + "我是E类的有参构造器");
    }
}
class F extends E{
    public F(){
        this("hello");
        System.out.println("我是F类的无参构造器");
    }
    public F(String name){
        super("jajaja");
        System.out.println("我是F类的有参构造器");
    }
}